import $request from '../utils/request';

interface loginData {
  userName: string,
  password: string
}


export const login = (data: loginData) => $request({ url: "/login", method: "post", data })

// export const getList = (data: any) => $request({ url: "/getList", method: "get", data })
// export const getRoleList = () => $request({ url: "/getRoleList", method: "get" })
// export const getUserList = () => $request({ url: "/getUserList", method: "get" })
// export const geTauthority = () => $request({ url: "/geTauthority", method: "get" })
// export const getRouter = () => $request({ url: "/getRouter", method: "get" })